﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RepairingTicketList.aspx.cs" Inherits="WebApp.RepairingTickets.RepairingTicketList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>In phiếu đi sửa</title>
    <style type="text/css">
        .RTL_Table
        {
            width:100%;
            border:1px solid black;
        }
        
        .RTL_td
        {
            border-right: 1px solid black;
        }
        
        .RTL_Table thead tr td
        {
            text-align:center;
            vertical-align:middle;
            font-weight:bold;
        }
        
        td
        {
            white-space:normal;
        }
        
        .RTL_Button
        {
            width:80px;
        }
        
        body
        {
            font-size:8pt;
        }
    </style>
</head>
<body style="margin:0px 0px 0px 0px;">
    <form id="form1" runat="server">
    <div>
        <h3 style="text-align:center; margin:0px 0px 0px 0px;">PHIẾU ĐI SỬA</h3>
        <asp:Repeater runat="server" ID="rptResult">
            <HeaderTemplate>
                <table class="RTL_Table" cellspacing="0px" cellpadding="0px">
                    <thead>
                        <tr>
                            <td class="RTL_td" style="width:3%;">STT</td>
                            <td class="RTL_td" style="width:12%;">Tên KH</td>
                            <td class="RTL_td" style="width:10%;">SĐT</td>
                            <td class="RTL_td" style="width:15%;">Địa Chỉ</td>
                            <td class="RTL_td" style="width:10%;">Loại Sửa Chữa</td>
                            <td class="RTL_td" style="width:10%;">Loại Sản Phẩm</td>
                            <td class="RTL_td" style="width:10%;">Model</td>
                            <td class="RTL_td" style="width:15%;">Thông Tin Hư Hỏng</td>
                            <td>Ghi Chú</td>
                        </tr>
                    </thead>
                </table>
            </HeaderTemplate>

            <ItemTemplate>
                <table class="RTL_Table" cellspacing="0px" cellpadding="0px">
                    <tr style="height:90px;">
                        <td class="RTL_td" style="width:3%; text-align:center;">
                            <asp:Label runat="server" ID="lblNumberOrder" Text='<%# DataBinder.Eval(Container.DataItem, "NumberOrder") %>'></asp:Label>
                        </td>
                        <td class="RTL_td" style="width:12%;">
                            <asp:Label runat="server" ID="lblFullName" Text='<%# DataBinder.Eval(Container.DataItem, "FullName") %>'></asp:Label>
                        </td>
                        <td class="RTL_td" style="width:10%;">
                            <asp:Label runat="server" ID="lblMobile" Text='<%# DataBinder.Eval(Container.DataItem, "Mobile") %>'></asp:Label>
                        </td>
                        <td class="RTL_td" style="width:15%;">
                            <asp:Label runat="server" ID="lblAddress" Text='<%# DataBinder.Eval(Container.DataItem, "Address") %>'></asp:Label>
                        </td>
                        <td class="RTL_td" style="width:10%;">
                            <asp:Label runat="server" ID="lblRepairingTypeName" Text='<%# DataBinder.Eval(Container.DataItem, "RepairingTypeName") %>'></asp:Label>
                        </td>
                        <td class="RTL_td" style="width:10%;">
                            <asp:Label runat="server" ID="lblProductTypeName" Text='<%# DataBinder.Eval(Container.DataItem, "ProductTypeName") %>'></asp:Label>
                        </td>
                        <td class="RTL_td" style="width:10%;">
                            <asp:Label runat="server" ID="lblModel" Text='<%# DataBinder.Eval(Container.DataItem, "Model") %>'></asp:Label>
                        </td>
                        <td class="RTL_td" style="width:15%;">
                            <asp:Label runat="server" ID="lblProductDescription" Text='<%# DataBinder.Eval(Container.DataItem, "ProductDescription") %>'></asp:Label>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:Repeater>

        <div style="width:100%; text-align:center;">
            <input type="button" id="btnClose" class="RTL_Button" value="Đóng" onclick="window.close(); return false;"/>
            <input type="button" id="btnPrint" class="RTL_Button" value="In" onclick="window.print(); return false;"/>
        </div>
    </div>
    </form>
</body>
</html>
